jQuery(document).ready(function() {
function trickslanka_ppopup()  {
var mdwh = jQuery(window).height();
var mdpph = jQuery("#trickslankapopup").height();
var mdfromTop = jQuery(window).scrollTop()+50;
 jQuery("#trickslankapopup").css({"top":mdfromTop});
}jQuery(window)
.scroll(trickslanka_ppopup)
.resize(trickslanka_ppopup)
//alert(jQuery.cookie('sreqshown'));
//var mdww = jQuery(window).width();
//var mdppw = jQuery("#trickslankapopup").width();
//var mdleftm = (mdww-mdppw)/2;
var mdleftm = 500;
//var mdwh = jQuery(window).height();
//var mdpph = jQuery("#trickslankapopup").height();
//var mdfromTop = (jQuery(window).scrollTop()+mdwh-mdpph) / 2; 
jQuery("#trickslankapopup").animate({opacity: "1", left: "0" , left: mdleftm}, 0).show();        
jQuery("#mdclose").click(function() {
jQuery("#trickslankapopup").animate({opacity: "0", left: "-500"}, 1000).show(); });});